/*
@InterfaceName TechInvokeService
@Date      2022/8/3
@Description TODO
@Author    SubUp
@version   1.0
*/
package com.sunjob.mrojobschedule.service;

import com.sunjob.common.domain.tech.TransShape;
import com.sunjob.common.result.Result;
import com.sunjob.mrojobschedule.config.ServiceFeignConfiguration;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/* 调用技术管理服务---构型---构型id+构型名称 */
//@FeignClient(value = "MROTECH",configuration = ServiceFeignConfiguration.class)
@FeignClient(value = "MROTECH",configuration = ServiceFeignConfiguration.class,url = "http://192.168.100.169:1001")
@Component
public interface TechInvokeService {
    @GetMapping("/mroTech/getAllShape")
    public Result getAllShape();
    /**
     * 根据id查找一级以下的所有结构 318387151249477
     * @param id
     * @return
     */
    @GetMapping("/mroTech/getshapeCompositionById")
    public Result getShapeCompositionById(@RequestParam("id") Long id);

    /**
     * 根据id查找一级以下的二级结构
     * @param id
     * @return
     */
    @GetMapping("/mroTech/getShape2CompositionById")
    public Result getShape2CompositionById(@RequestParam("id") Long id);

    /**
     * 查找所有二级结构
     * @return
     */
    @GetMapping("/mroTech/getAllShapa2Composition")
    public Result getAllShapa2Composition();

    /**
     * 跟据二级id查找所有三级结构
     * @param shape2Id
     * @return
     */
    @GetMapping("/mroTech/getAllShapa3Composition")
    public Result getAllShapa3Composition(@RequestParam Long shape2Id);
}
